/*
全局信息，如该终端的编号，当前链接的服务器信息等
 */


class GlobalInfo {
  GlobalInfo();

  var _devId = 0;
  var _sessionId = 0;

  static GlobalInfo _i;
  factory GlobalInfo.i() {
    if(_i == null) {
      return GlobalInfo();
    }
    return _i;
  }

  int get deviceId => _devId;
  void setDeviceId(int devId) {
    _devId = devId;
  }

  int get sessionId => _sessionId;
  void setSessionId(int sessionId) {
    _sessionId = sessionId;
  }
}
